var net = require('net');
var PORT = 18081;
var HOST = 'cusin.tech.lan';// tcp客户端
var client = net.createConnection(PORT, HOST);

client.on('connect', function(){
	console.log('客户端：已经与服务端建立连接');
});
client.on('data', function(data){
	console.log('客户端：收到服务端数据，内容为{'+ data +'}');
});
client.on('close', function(data){
	console.log('客户端：连接断开');
});
client.end('你好，我是客户端');